/*******************************************************************************
 *
 * Copyright (c) 2008-2011 ayound@gmail.com, guwei8576431@gmail.com
 * This program and the accompanying materials
 * are made available under the terms of the GNU GENERAL PUBLIC LICENSE 
 * which accompanies this distribution, and is available at
 * http://dev.perl.org/licenses/gpl1.html
 * All rights reserved.
 * 
 * Created on 2009-10-22
 *******************************************************************************/

package org.cgtw.scriptprofile.server.servlet.processor;

import org.cgtw.scriptprofile.server.servlet.ScriptProfileRequest;
import org.cgtw.scriptprofile.server.servlet.ScriptProfileResponse;
import org.cgtw.scriptprofile.server.servlet.ScriptProfileResponseInfo;

public abstract class AbstractProcessor implements IServerProcessor {
	private ScriptProfileRequest request;
	private ScriptProfileResponse response;
	private ScriptProfileResponseInfo info;
	public AbstractProcessor(ScriptProfileRequest request, ScriptProfileResponse response, ScriptProfileResponseInfo info){
		this.request = request;
		this.response = response;
		this.info = info;
	}
	
	public abstract void process();

	/**
	 * @return Returns the info.
	 */
	public ScriptProfileResponseInfo getInfo() {
		return info;
	}

	/**
	 * @return Returns the request.
	 */
	public ScriptProfileRequest getRequest() {
		return request;
	}

	/**
	 * @return Returns the response.
	 */
	public ScriptProfileResponse getResponse() {
		return response;
	}

}
